<template>
  <el-dialog
    title="关联特征"
    width="600px"
    :close-on-click-modal="false"
 v-model="show"
    @close="modalClose"
    append-to-body
  >
    <div>
      <el-table
          :data="listData"
          v-loading="loading"
           v-model="show"
          @selection-change="handleSelectionChange"
        >
          <el-table-column label="症状ID" align="center" prop="id" />
          <el-table-column label="症状部位" align="center" prop="category" />
          <el-table-column label="症状表现" align="center" prop="symptom" />
          <el-table-column
            label="症状表现(EN)"
            align="center"
            prop="symptomEn"
          />
          <!-- <el-table-column
            label="操作"
            align="center"
            class-name="small-padding fixed-width"
          >
            <template #default="scope">
              <el-button type="success" @click="showDetail(scope.row)"
                >查看</el-button
              >
            </template>
          </el-table-column> -->

          <!-- <el-table-column
            label="创建时间"
            align="center"
            prop="createdTime"
            width="160"
          />
          <el-table-column
            label="操作"
            align="center"
            width="150"
            class-name="small-padding fixed-width"
          >
            <template #default="scope">
              <el-button
                size="mini"
                type="text"
                icon="Edit"
                @click="handleUpdate(scope.row)"
                >修改</el-button
              >
              <el-button
                size="mini"
                type="text"
                icon="Delete"
                @click="handleDelete(scope.row)"
                >删除</el-button
              >
            </template>
          </el-table-column> -->
        </el-table>
    </div>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="show = false" size="large">取消</el-button>
        <el-button type="primary" @click="show = false" size="large"
          >确认</el-button
        >
      </span>
    </template>
  </el-dialog>
</template>
<script setup name="ViewD">
const { proxy } = getCurrentInstance();

const emit = defineEmits(["close"]);

const props = defineProps({
    show:{
        type:Boolean
    },
  listData: {
    type: Array,
  },
});
function modalClose(e) {
  //console.log('关闭')
  emit("close", 0);
}
</script>
<style>
</style>